<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单域</title>
</head>
<body>
    <form action="demo.php" method="POST" name="name1">
        <label for="name">姓名:</label>
        <input type="text" id="name" name="name" required>
        <br><br>
        <label for="gender">性别:</label>
        <input type="radio" id="male" name="gender" value="male" required>
        <label for="male">男</label>
        <input type="radio" id="female" name="gender" value="female" required>
        <label for="female">女</label>
        <br><br>
        <label for="email">邮箱:</label>
        <input type="email" id="email" name="email" required>
        <br><br>
        <label for="password">密码:</label>
        <input type="password" id="password" name="password" pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])." required>
    </form>
</body>
</html>